﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AdminUsuarios.aspx.cs" Inherits="WebProveedores.AdminUsuarios" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div>
        <table style="width: 100%;">
            <tr>
               <td colspan="3" align="center" bgcolor="#595959" style="font-family: arial; font-size: 18px; color: #FFFFFF; font-weight: bold">
                    Administración de usuarios                 
                </td>
            </tr>
        </table>    
    </div>

    <div>
        <table style="width: 100%;">
            <tr>
                <td >
                    <asp:LinkButton ID="lnkAsigSocie" runat="server" PostBackUrl="~/AsignarSociedadUsuario.aspx">Asignar Sociedad</asp:LinkButton>
                    &nbsp;
                    <asp:LinkButton ID="lnkCambClave" runat="server" PostBackUrl="~/CambiarPassword.aspx">Cambiar Clave</asp:LinkButton>
                    &nbsp;
                    <asp:LinkButton ID="lnkVerFactura" runat="server" PostBackUrl="~/Default.aspx">Ver Facturas</asp:LinkButton>                   
                </td>
            </tr>
        </table>    
    </div>
    <div>
        <table style="width: 100%;">
            <tr>
                <td colspan="2">
                    <asp:Button ID="btnGrabar" runat="server"  Text="Guardar" CssClass="boton" onclick="btnGrabar_Click" 
                         />   
                    &nbsp;&nbsp;   
                    <asp:Button ID="btnNuevo" runat="server"  Text="Nuevo" CssClass="boton" 
                        onclick="btnNuevo_Click"  />   
                    &nbsp;&nbsp;   
                    <asp:Button ID="btnCancelar" runat="server"  Text="Cancelar" CssClass="boton" 
                        onclick="btnCancelar_Click"   />   
                    &nbsp;&nbsp;   
                    <asp:Button ID="Eliminar" runat="server"  Text="Eliminar" CssClass="boton" 
                        onclick="Eliminar_Click"   />   
                </td>
            </tr>
            <tr>
                <td >
                    Usuario:<asp:TextBox ID="txbUsuario" runat="server" Text="" CssClass="inputbox" 
                        Width="200" MaxLength="10" ReadOnly="True" />
                </td>
                <td >
                   Nombre:<asp:TextBox ID="txbNombre" runat="server" Width="252px"></asp:TextBox>
                </td>

            </tr>
            <tr>
                <td >
                    Apellido:<asp:TextBox ID="txtApellido" runat="server" Width="252px"></asp:TextBox>
                </td>
                <td >
                    Es administrador: <asp:CheckBox ID="chbEsAdmin" runat="server" />
                </td>
            </tr>            

            <tr>
                <td colspan="2">
                   
        <asp:Panel ID="PanelUsuario" runat="server" ScrollBars="Horizontal" Height="300px">
            <asp:GridView ID="gvUsuario" onrowcommand="UsuarioGridView_RowCommand" EmptyDataText="No se encontraron registros." 
            runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
                GridLines="None" Height="100%" Width="100%" >
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                <Columns>
                    <asp:ButtonField ButtonType="Image" ImageUrl="~/imagenes/view.png" Text="Ver" CommandName="Select" />                    
                    <asp:BoundField DataField="usuario" HeaderText="Usuario" 
                        Visible="true" ItemStyle-HorizontalAlign="Center" >
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="nombre" HeaderText="Nombre" Visible="true" 
                        ItemStyle-HorizontalAlign="Center">
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="apellido" HeaderText="Apellido" Visible="true" 
                        ItemStyle-HorizontalAlign="Center" >
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="desctipo" HeaderText="Tipo" Visible="true" 
                        ItemStyle-HorizontalAlign="Center" >
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                </Columns>
                <EditRowStyle BackColor="#999999" />
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#00599C" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#E9E7E2" />
                <SortedAscendingHeaderStyle BackColor="#506C8C" />
                <SortedDescendingCellStyle BackColor="#FFFDF8" />
                <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
            </asp:GridView>
        </asp:Panel>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
